using System;

namespace Next.Whs.MQ
{
	internal struct ReasonCodes
	{
		public const uint MQRC_NONE = 0;
		public const uint MQRC_ALIAS_BASE_Q_TYPE_ERROR = 2001;
		public const uint MQRC_ALREADY_CONNECTED = 2002;
		public const uint MQRC_BACKED_OUT = 2003;
		public const uint MQRC_BUFFER_ERROR = 2004;
		public const uint MQRC_BUFFER_LENGTH_ERROR = 2005;
		public const uint MQRC_CHAR_ATTR_LENGTH_ERROR = 2006;
		public const uint MQRC_CHAR_ATTRS_ERROR = 2007;
		public const uint MQRC_CHAR_ATTRS_TOO_SHORT = 2008;
		public const uint MQRC_CONNECTION_BROKEN = 2009;
		public const uint MQRC_DATA_LENGTH_ERROR = 2010;
		public const uint MQRC_DYNAMIC_Q_NAME_ERROR = 2011;
		public const uint MQRC_ENVIRONMENT_ERROR = 2012;
		public const uint MQRC_EXPIRY_ERROR = 2013;
		public const uint MQRC_FEEDBACK_ERROR = 2014;
		public const uint MQRC_GET_INHIBITED = 2016;
		public const uint MQRC_HANDLE_NOT_AVAILABLE = 2017;
		public const uint MQRC_HCONN_ERROR = 2018;
		public const uint MQRC_HOBJ_ERROR = 2019;
		public const uint MQRC_INHIBIT_VALUE_ERROR = 2020;
		public const uint MQRC_INT_ATTR_COUNT_ERROR = 2021;
		public const uint MQRC_INT_ATTR_COUNT_TOO_SMALL = 2022;
		public const uint MQRC_INT_ATTRS_ARRAY_ERROR = 2023;
		public const uint MQRC_SYNCPOINT_LIMIT_REACHED = 2024;
		public const uint MQRC_MAX_CONNS_LIMIT_REACHED = 2025;
		public const uint MQRC_MD_ERROR = 2026;
		public const uint MQRC_MISSING_REPLY_TO_Q = 2027;
		public const uint MQRC_MSG_TYPE_ERROR = 2029;
		public const uint MQRC_MSG_TOO_BIG_FOR_Q = 2030;
		public const uint MQRC_MSG_TOO_BIG_FOR_Q_MGR = 2031;
		public const uint MQRC_NO_MSG_AVAILABLE = 2033;
		public const uint MQRC_NO_MSG_UNDER_CURSOR = 2034;
		public const uint MQRC_NOT_AUTHORIZED = 2035;
		public const uint MQRC_NOT_OPEN_FOR_BROWSE = 2036;
		public const uint MQRC_NOT_OPEN_FOR_INPUT = 2037;
		public const uint MQRC_NOT_OPEN_FOR_INQUIRE = 2038;
		public const uint MQRC_NOT_OPEN_FOR_OUTPUT = 2039;
		public const uint MQRC_NOT_OPEN_FOR_SET = 2040;
		public const uint MQRC_OBJECT_CHANGED = 2041;
		public const uint MQRC_OBJECT_IN_USE = 2042;
		public const uint MQRC_OBJECT_TYPE_ERROR = 2043;
		public const uint MQRC_OD_ERROR = 2044;
		public const uint MQRC_OPTION_NOT_VALID_FOR_TYPE = 2045;
		public const uint MQRC_OPTIONS_ERROR = 2046;
		public const uint MQRC_PERSISTENCE_ERROR = 2047;
		public const uint MQRC_PERSISTENT_NOT_ALLOWED = 2048;
		public const uint MQRC_PRIORITY_EXCEEDS_MAXIMUM = 2049;
		public const uint MQRC_PRIORITY_ERROR = 2050;
		public const uint MQRC_PUT_INHIBITED = 2051;
		public const uint MQRC_Q_DELETED = 2052;
		public const uint MQRC_Q_FULL = 2053;
		public const uint MQRC_Q_NOT_EMPTY = 2055;
		public const uint MQRC_Q_SPACE_NOT_AVAILABLE = 2056;
		public const uint MQRC_Q_TYPE_ERROR = 2057;
		public const uint MQRC_Q_MGR_NAME_ERROR = 2058;
		public const uint MQRC_Q_MGR_NOT_AVAILABLE = 2059;
		public const uint MQRC_REPORT_OPTIONS_ERROR = 2061;
		public const uint MQRC_SECOND_MARK_NOT_ALLOWED = 2062;
		public const uint MQRC_SECURITY_ERROR = 2063;
		public const uint MQRC_SELECTOR_COUNT_ERROR = 2065;
		public const uint MQRC_SELECTOR_LIMIT_EXCEEDED = 2066;
		public const uint MQRC_SELECTOR_ERROR = 2067;
		public const uint MQRC_SELECTOR_NOT_FOR_TYPE = 2068;
		public const uint MQRC_SIGNAL_OUTSTANDING = 2069;
		public const uint MQRC_SIGNAL_REQUEST_ACCEPTED = 2070;
		public const uint MQRC_STORAGE_NOT_AVAILABLE = 2071;
		public const uint MQRC_SYNCPOINT_NOT_AVAILABLE = 2072;
		public const uint MQRC_TRIGGER_CONTROL_ERROR = 2075;
		public const uint MQRC_TRIGGER_DEPTH_ERROR = 2076;
		public const uint MQRC_TRIGGER_MSG_PRIORITY_ERR = 2077;
		public const uint MQRC_TRIGGER_TYPE_ERROR = 2078;
		public const uint MQRC_TRUNCATED_MSG_ACCEPTED = 2079;
		public const uint MQRC_TRUNCATED_MSG_FAILED = 2080;
		public const uint MQRC_UNKNOWN_ALIAS_BASE_Q = 2082;
		public const uint MQRC_UNKNOWN_OBJECT_NAME = 2085;
		public const uint MQRC_UNKNOWN_OBJECT_Q_MGR = 2086;
		public const uint MQRC_UNKNOWN_REMOTE_Q_MGR = 2087;
		public const uint MQRC_WAIT_INTERVAL_ERROR = 2090;
		public const uint MQRC_XMIT_Q_TYPE_ERROR = 2091;
		public const uint MQRC_XMIT_Q_USAGE_ERROR = 2092;
		public const uint MQRC_NOT_OPEN_FOR_PASS_ALL = 2093;
		public const uint MQRC_NOT_OPEN_FOR_PASS_IDENT = 2094;
		public const uint MQRC_NOT_OPEN_FOR_SET_ALL = 2095;
		public const uint MQRC_NOT_OPEN_FOR_SET_IDENT = 2096;
		public const uint MQRC_CONTEXT_HANDLE_ERROR = 2097;
		public const uint MQRC_CONTEXT_NOT_AVAILABLE = 2098;
		public const uint MQRC_SIGNAL1_ERROR = 2099;
		public const uint MQRC_OBJECT_ALREADY_EXISTS = 2100;
		public const uint MQRC_OBJECT_DAMAGED = 2101;
		public const uint MQRC_RESOURCE_PROBLEM = 2102;
		public const uint MQRC_ANOTHER_Q_MGR_CONNECTED = 2103;
		public const uint MQRC_UNKNOWN_REPORT_OPTION = 2104;
		public const uint MQRC_STORAGE_CLASS_ERROR = 2105;
		public const uint MQRC_COD_NOT_VALID_FOR_XCF_Q = 2106;
		public const uint MQRC_XWAIT_CANCELED = 2107;
		public const uint MQRC_XWAIT_ERROR = 2108;
		public const uint MQRC_SUPPRESSED_BY_EXIT = 2109;
		public const uint MQRC_FORMAT_ERROR = 2110;
		public const uint MQRC_SOURCE_CCSID_ERROR = 2111;
		public const uint MQRC_SOURCE_INTEGER_ENC_ERROR = 2112;
		public const uint MQRC_SOURCE_DECIMAL_ENC_ERROR = 2113;
		public const uint MQRC_SOURCE_FLOAT_ENC_ERROR = 2114;
		public const uint MQRC_TARGET_CCSID_ERROR = 2115;
		public const uint MQRC_TARGET_INTEGER_ENC_ERROR = 2116;
		public const uint MQRC_TARGET_DECIMAL_ENC_ERROR = 2117;
		public const uint MQRC_TARGET_FLOAT_ENC_ERROR = 2118;
		public const uint MQRC_NOT_CONVERTED = 2119;
		public const uint MQRC_CONVERTED_MSG_TOO_BIG = 2120;
		public const uint MQRC_TRUNCATED = 2120;
		public const uint MQRC_NO_EXTERNAL_PARTICIPANTS = 2121;
		public const uint MQRC_PARTICIPANT_NOT_AVAILABLE = 2122;
		public const uint MQRC_OUTCOME_MIXED = 2123;
		public const uint MQRC_OUTCOME_PENDING = 2124;
		public const uint MQRC_BRIDGE_STARTED = 2125;
		public const uint MQRC_BRIDGE_STOPPED = 2126;
		public const uint MQRC_ADAPTER_STORAGE_SHORTAGE = 2127;
		public const uint MQRC_UOW_IN_PROGRESS = 2128;
		public const uint MQRC_ADAPTER_CONN_LOAD_ERROR = 2129;
		public const uint MQRC_ADAPTER_SERV_LOAD_ERROR = 2130;
		public const uint MQRC_ADAPTER_DEFS_ERROR = 2131;
		public const uint MQRC_ADAPTER_DEFS_LOAD_ERROR = 2132;
		public const uint MQRC_ADAPTER_CONV_LOAD_ERROR = 2133;
		public const uint MQRC_BO_ERROR = 2134;
		public const uint MQRC_DH_ERROR = 2135;
		public const uint MQRC_MULTIPLE_REASONS = 2136;
		public const uint MQRC_OPEN_FAILED = 2137;
		public const uint MQRC_ADAPTER_DISC_LOAD_ERROR = 2138;
		public const uint MQRC_CNO_ERROR = 2139;
		public const uint MQRC_CICS_WAIT_FAILED = 2140;
		public const uint MQRC_DLH_ERROR = 2141;
		public const uint MQRC_HEADER_ERROR = 2142;
		public const uint MQRC_SOURCE_LENGTH_ERROR = 2143;
		public const uint MQRC_TARGET_LENGTH_ERROR = 2144;
		public const uint MQRC_SOURCE_BUFFER_ERROR = 2145;
		public const uint MQRC_TARGET_BUFFER_ERROR = 2146;
		public const uint MQRC_IIH_ERROR = 2148;
		public const uint MQRC_PCF_ERROR = 2149;
		public const uint MQRC_DBCS_ERROR = 2150;
		public const uint MQRC_OBJECT_NAME_ERROR = 2152;
		public const uint MQRC_OBJECT_Q_MGR_NAME_ERROR = 2153;
		public const uint MQRC_RECS_PRESENT_ERROR = 2154;
		public const uint MQRC_OBJECT_RECORDS_ERROR = 2155;
		public const uint MQRC_RESPONSE_RECORDS_ERROR = 2156;
		public const uint MQRC_ASID_MISMATCH = 2157;
		public const uint MQRC_PMO_RECORD_FLAGS_ERROR = 2158;
		public const uint MQRC_PUT_MSG_RECORDS_ERROR = 2159;
		public const uint MQRC_CONN_ID_IN_USE = 2160;
		public const uint MQRC_Q_MGR_QUIESCING = 2161;
		public const uint MQRC_Q_MGR_STOPPING = 2162;
		public const uint MQRC_DUPLICATE_RECOV_COORD = 2163;
		public const uint MQRC_PMO_ERROR = 2173;
		public const uint MQRC_API_EXIT_NOT_FOUND = 2182;
		public const uint MQRC_API_EXIT_LOAD_ERROR = 2183;
		public const uint MQRC_REMOTE_Q_NAME_ERROR = 2184;
		public const uint MQRC_INCONSISTENT_PERSISTENCE = 2185;
		public const uint MQRC_GMO_ERROR = 2186;
		public const uint MQRC_CICS_BRIDGE_RESTRICTION = 2187;
		public const uint MQRC_STOPPED_BY_CLUSTER_EXIT = 2188;
		public const uint MQRC_CLUSTER_RESOLUTION_ERROR = 2189;
		public const uint MQRC_CONVERTED_STRING_TOO_BIG = 2190;
		public const uint MQRC_TMC_ERROR = 2191;
		public const uint MQRC_PAGESET_FULL = 2192;
		public const uint MQRC_STORAGE_MEDIUM_FULL = 2192;
		public const uint MQRC_PAGESET_ERROR = 2193;
		public const uint MQRC_NAME_NOT_VALID_FOR_TYPE = 2194;
		public const uint MQRC_UNEXPECTED_ERROR = 2195;
		public const uint MQRC_UNKNOWN_XMIT_Q = 2196;
		public const uint MQRC_UNKNOWN_DEF_XMIT_Q = 2197;
		public const uint MQRC_DEF_XMIT_Q_TYPE_ERROR = 2198;
		public const uint MQRC_DEF_XMIT_Q_USAGE_ERROR = 2199;
		public const uint MQRC_NAME_IN_USE = 2201;
		public const uint MQRC_CONNECTION_QUIESCING = 2202;
		public const uint MQRC_CONNECTION_STOPPING = 2203;
		public const uint MQRC_ADAPTER_NOT_AVAILABLE = 2204;
		public const uint MQRC_MSG_ID_ERROR = 2206;
		public const uint MQRC_CORREL_ID_ERROR = 2207;
		public const uint MQRC_FILE_SYSTEM_ERROR = 2208;
		public const uint MQRC_NO_MSG_LOCKED = 2209;
		public const uint MQRC_FILE_NOT_AUDITED = 2216;
		public const uint MQRC_CONNECTION_NOT_AUTHORIZED = 2217;
		public const uint MQRC_MSG_TOO_BIG_FOR_CHANNEL = 2218;
		public const uint MQRC_CALL_IN_PROGRESS = 2219;
		public const uint MQRC_RMH_ERROR = 2220;
		public const uint MQRC_Q_MGR_ACTIVE = 2222;
		public const uint MQRC_Q_MGR_NOT_ACTIVE = 2223;
		public const uint MQRC_Q_DEPTH_HIGH = 2224;
		public const uint MQRC_Q_DEPTH_LOW = 2225;
		public const uint MQRC_Q_SERVICE_INTERVAL_HIGH = 2226;
		public const uint MQRC_Q_SERVICE_INTERVAL_OK = 2227;
		public const uint MQRC_UNIT_OF_WORK_NOT_STARTED = 2232;
		public const uint MQRC_CHANNEL_AUTO_DEF_OK = 2233;
		public const uint MQRC_CHANNEL_AUTO_DEF_ERROR = 2234;
		public const uint MQRC_CFH_ERROR = 2235;
		public const uint MQRC_CFIL_ERROR = 2236;
		public const uint MQRC_CFIN_ERROR = 2237;
		public const uint MQRC_CFSL_ERROR = 2238;
		public const uint MQRC_CFST_ERROR = 2239;
		public const uint MQRC_INCOMPLETE_GROUP = 2241;
		public const uint MQRC_INCOMPLETE_MSG = 2242;
		public const uint MQRC_INCONSISTENT_CCSIDS = 2243;
		public const uint MQRC_INCONSISTENT_ENCODINGS = 2244;
		public const uint MQRC_INCONSISTENT_UOW = 2245;
		public const uint MQRC_INVALID_MSG_UNDER_CURSOR = 2246;
		public const uint MQRC_MATCH_OPTIONS_ERROR = 2247;
		public const uint MQRC_MDE_ERROR = 2248;
		public const uint MQRC_MSG_FLAGS_ERROR = 2249;
		public const uint MQRC_MSG_SEQ_NUMBER_ERROR = 2250;
		public const uint MQRC_OFFSET_ERROR = 2251;
		public const uint MQRC_ORIGINAL_LENGTH_ERROR = 2252;
		public const uint MQRC_SEGMENT_LENGTH_ZERO = 2253;
		public const uint MQRC_UOW_NOT_AVAILABLE = 2255;
		public const uint MQRC_WRONG_GMO_VERSION = 2256;
		public const uint MQRC_WRONG_MD_VERSION = 2257;
		public const uint MQRC_GROUP_ID_ERROR = 2258;
		public const uint MQRC_INCONSISTENT_BROWSE = 2259;
		public const uint MQRC_XQH_ERROR = 2260;
		public const uint MQRC_SRC_ENV_ERROR = 2261;
		public const uint MQRC_SRC_NAME_ERROR = 2262;
		public const uint MQRC_DEST_ENV_ERROR = 2263;
		public const uint MQRC_DEST_NAME_ERROR = 2264;
		public const uint MQRC_TM_ERROR = 2265;
		public const uint MQRC_CLUSTER_EXIT_ERROR = 2266;
		public const uint MQRC_CLUSTER_EXIT_LOAD_ERROR = 2267;
		public const uint MQRC_CLUSTER_PUT_INHIBITED = 2268;
		public const uint MQRC_CLUSTER_RESOURCE_ERROR = 2269;
		public const uint MQRC_NO_DESTINATIONS_AVAILABLE = 2270;
		public const uint MQRC_CONN_TAG_IN_USE = 2271;
		public const uint MQRC_PARTIALLY_CONVERTED = 2272;
		public const uint MQRC_CONNECTION_ERROR = 2273;
		public const uint MQRC_OPTION_ENVIRONMENT_ERROR = 2274;
		public const uint MQRC_CD_ERROR = 2277;
		public const uint MQRC_CLIENT_CONN_ERROR = 2278;
		public const uint MQRC_CHANNEL_STOPPED_BY_USER = 2279;
		public const uint MQRC_HCONFIG_ERROR = 2280;
		public const uint MQRC_FUNCTION_ERROR = 2281;
		public const uint MQRC_CHANNEL_STARTED = 2282;
		public const uint MQRC_CHANNEL_STOPPED = 2283;
		public const uint MQRC_CHANNEL_CONV_ERROR = 2284;
		public const uint MQRC_SERVICE_NOT_AVAILABLE = 2285;
		public const uint MQRC_INITIALIZATION_FAILED = 2286;
		public const uint MQRC_TERMINATION_FAILED = 2287;
		public const uint MQRC_UNKNOWN_Q_NAME = 2288;
		public const uint MQRC_SERVICE_ERROR = 2289;
		public const uint MQRC_Q_ALREADY_EXISTS = 2290;
		public const uint MQRC_USER_ID_NOT_AVAILABLE = 2291;
		public const uint MQRC_UNKNOWN_ENTITY = 2292;
		public const uint MQRC_UNKNOWN_AUTH_ENTITY = 2293;
		public const uint MQRC_UNKNOWN_REF_OBJECT = 2294;
		public const uint MQRC_CHANNEL_ACTIVATED = 2295;
		public const uint MQRC_CHANNEL_NOT_ACTIVATED = 2296;
		public const uint MQRC_UOW_CANCELED = 2297;
		public const uint MQRC_FUNCTION_NOT_SUPPORTED = 2298;
		public const uint MQRC_SELECTOR_TYPE_ERROR = 2299;
		public const uint MQRC_COMMAND_TYPE_ERROR = 2300;
		public const uint MQRC_MULTIPLE_INSTANCE_ERROR = 2301;
		public const uint MQRC_SYSTEM_ITEM_NOT_ALTERABLE = 2302;
		public const uint MQRC_BAG_CONVERSION_ERROR = 2303;
		public const uint MQRC_SELECTOR_OUT_OF_RANGE = 2304;
		public const uint MQRC_SELECTOR_NOT_UNIQUE = 2305;
		public const uint MQRC_INDEX_NOT_PRESENT = 2306;
		public const uint MQRC_STRING_ERROR = 2307;
		public const uint MQRC_ENCODING_NOT_SUPPORTED = 2308;
		public const uint MQRC_SELECTOR_NOT_PRESENT = 2309;
		public const uint MQRC_OUT_SELECTOR_ERROR = 2310;
		public const uint MQRC_STRING_TRUNCATED = 2311;
		public const uint MQRC_SELECTOR_WRONG_TYPE = 2312;
		public const uint MQRC_INCONSISTENT_ITEM_TYPE = 2313;
		public const uint MQRC_INDEX_ERROR = 2314;
		public const uint MQRC_SYSTEM_BAG_NOT_ALTERABLE = 2315;
		public const uint MQRC_ITEM_COUNT_ERROR = 2316;
		public const uint MQRC_FORMAT_NOT_SUPPORTED = 2317;
		public const uint MQRC_SELECTOR_NOT_SUPPORTED = 2318;
		public const uint MQRC_ITEM_VALUE_ERROR = 2319;
		public const uint MQRC_HBAG_ERROR = 2320;
		public const uint MQRC_PARAMETER_MISSING = 2321;
		public const uint MQRC_CMD_SERVER_NOT_AVAILABLE = 2322;
		public const uint MQRC_STRING_LENGTH_ERROR = 2323;
		public const uint MQRC_INQUIRY_COMMAND_ERROR = 2324;
		public const uint MQRC_NESTED_BAG_NOT_SUPPORTED = 2325;
		public const uint MQRC_BAG_WRONG_TYPE = 2326;
		public const uint MQRC_ITEM_TYPE_ERROR = 2327;
		public const uint MQRC_SYSTEM_BAG_NOT_DELETABLE = 2328;
		public const uint MQRC_SYSTEM_ITEM_NOT_DELETABLE = 2329;
		public const uint MQRC_CODED_CHAR_SET_ID_ERROR = 2330;
		public const uint MQRC_MSG_TOKEN_ERROR = 2331;
		public const uint MQRC_MISSING_WIH = 2332;
		public const uint MQRC_WIH_ERROR = 2333;
		public const uint MQRC_RFH_ERROR = 2334;
		public const uint MQRC_RFH_STRING_ERROR = 2335;
		public const uint MQRC_RFH_COMMAND_ERROR = 2336;
		public const uint MQRC_RFH_PARM_ERROR = 2337;
		public const uint MQRC_RFH_DUPLICATE_PARM = 2338;
		public const uint MQRC_RFH_PARM_MISSING = 2339;
		public const uint MQRC_CHAR_CONVERSION_ERROR = 2340;
		public const uint MQRC_UCS2_CONVERSION_ERROR = 2341;
		public const uint MQRC_DB2_NOT_AVAILABLE = 2342;
		public const uint MQRC_OBJECT_NOT_UNIQUE = 2343;
		public const uint MQRC_CONN_TAG_NOT_RELEASED = 2344;
		public const uint MQRC_CF_NOT_AVAILABLE = 2345;
		public const uint MQRC_CF_STRUC_IN_USE = 2346;
		public const uint MQRC_CF_STRUC_LIST_HDR_IN_USE = 2347;
		public const uint MQRC_CF_STRUC_AUTH_FAILED = 2348;
		public const uint MQRC_CF_STRUC_ERROR = 2349;
		public const uint MQRC_CONN_TAG_NOT_USABLE = 2350;
		public const uint MQRC_GLOBAL_UOW_CONFLICT = 2351;
		public const uint MQRC_LOCAL_UOW_CONFLICT = 2352;
		public const uint MQRC_HANDLE_IN_USE_FOR_UOW = 2353;
		public const uint MQRC_UOW_ENLISTMENT_ERROR = 2354;
		public const uint MQRC_UOW_MIX_NOT_SUPPORTED = 2355;
		public const uint MQRC_WXP_ERROR = 2356;
		public const uint MQRC_CURRENT_RECORD_ERROR = 2357;
		public const uint MQRC_NEXT_OFFSET_ERROR = 2358;
		public const uint MQRC_NO_RECORD_AVAILABLE = 2359;
		public const uint MQRC_OBJECT_LEVEL_INCOMPATIBLE = 2360;
		public const uint MQRC_NEXT_RECORD_ERROR = 2361;
		public const uint MQRC_APPL_FIRST = 900;
		public const uint MQRC_APPL_LAST = 999;
	}

	internal class ReasonCodeUtils
	{
		public static string DecodeReasonCode(uint reasonCode)
		{
			string result;
			switch(reasonCode)
			{
				case ReasonCodes.MQRC_NONE:
					result = "(MQRC_NONE)";
					break;
				case ReasonCodes.MQRC_ALIAS_BASE_Q_TYPE_ERROR:
					result = "(MQRC_ALIAS_BASE_Q_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_ALREADY_CONNECTED:
					result = "(MQRC_ALREADY_CONNECTED)";
					break;
				case ReasonCodes.MQRC_BACKED_OUT:
					result = "(MQRC_BACKED_OUT)";
					break;
				case ReasonCodes.MQRC_BUFFER_ERROR:
					result = "(MQRC_BUFFER_ERROR)";
					break;
				case ReasonCodes.MQRC_BUFFER_LENGTH_ERROR:
					result = "(MQRC_BUFFER_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_CHAR_ATTR_LENGTH_ERROR:
					result = "(MQRC_CHAR_ATTR_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_CHAR_ATTRS_ERROR:
					result = "(MQRC_CHAR_ATTRS_ERROR)";
					break;
				case ReasonCodes.MQRC_CHAR_ATTRS_TOO_SHORT:
					result = "(MQRC_CHAR_ATTRS_TOO_SHORT)";
					break;
				case ReasonCodes.MQRC_CONNECTION_BROKEN:
					result = "(MQRC_CONNECTION_BROKEN)";
					break;
				case ReasonCodes.MQRC_DATA_LENGTH_ERROR:
					result = "(MQRC_DATA_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_DYNAMIC_Q_NAME_ERROR:
					result = "(MQRC_DYNAMIC_Q_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_ENVIRONMENT_ERROR:
					result = "(MQRC_ENVIRONMENT_ERROR)";
					break;
				case ReasonCodes.MQRC_EXPIRY_ERROR:
					result = "(MQRC_EXPIRY_ERROR)";
					break;
				case ReasonCodes.MQRC_FEEDBACK_ERROR:
					result = "(MQRC_FEEDBACK_ERROR)";
					break;
				case ReasonCodes.MQRC_GET_INHIBITED:
					result = "(MQRC_GET_INHIBITED)";
					break;
				case ReasonCodes.MQRC_HANDLE_NOT_AVAILABLE:
					result = "(MQRC_HANDLE_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_HCONN_ERROR:
					result = "(MQRC_HCONN_ERROR)";
					break;
				case ReasonCodes.MQRC_HOBJ_ERROR:
					result = "(MQRC_HOBJ_ERROR)";
					break;
				case ReasonCodes.MQRC_INHIBIT_VALUE_ERROR:
					result = "(MQRC_INHIBIT_VALUE_ERROR)";
					break;
				case ReasonCodes.MQRC_INT_ATTR_COUNT_ERROR:
					result = "(MQRC_INT_ATTR_COUNT_ERROR)";
					break;
				case ReasonCodes.MQRC_INT_ATTR_COUNT_TOO_SMALL:
					result = "(MQRC_INT_ATTR_COUNT_TOO_SMALL)";
					break;
				case ReasonCodes.MQRC_INT_ATTRS_ARRAY_ERROR:
					result = "(MQRC_INT_ATTRS_ARRAY_ERROR)";
					break;
				case ReasonCodes.MQRC_SYNCPOINT_LIMIT_REACHED:
					result = "(MQRC_SYNCPOINT_LIMIT_REACHED)";
					break;
				case ReasonCodes.MQRC_MAX_CONNS_LIMIT_REACHED:
					result = "(MQRC_MAX_CONNS_LIMIT_REACHED)";
					break;
				case ReasonCodes.MQRC_MD_ERROR:
					result = "(MQRC_MD_ERROR)";
					break;
				case ReasonCodes.MQRC_MISSING_REPLY_TO_Q:
					result = "(MQRC_MISSING_REPLY_TO_Q)";
					break;
				case ReasonCodes.MQRC_MSG_TYPE_ERROR:
					result = "(MQRC_MSG_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_MSG_TOO_BIG_FOR_Q:
					result = "(MQRC_MSG_TOO_BIG_FOR_Q)";
					break;
				case ReasonCodes.MQRC_MSG_TOO_BIG_FOR_Q_MGR:
					result = "(MQRC_MSG_TOO_BIG_FOR_Q_MGR)";
					break;
				case ReasonCodes.MQRC_NO_MSG_AVAILABLE:
					result = "(MQRC_NO_MSG_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_NO_MSG_UNDER_CURSOR:
					result = "(MQRC_NO_MSG_UNDER_CURSOR)";
					break;
				case ReasonCodes.MQRC_NOT_AUTHORIZED:
					result = "(MQRC_NOT_AUTHORIZED)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_BROWSE:
					result = "(MQRC_NOT_OPEN_FOR_BROWSE)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_INPUT:
					result = "(MQRC_NOT_OPEN_FOR_INPUT)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_INQUIRE:
					result = "(MQRC_NOT_OPEN_FOR_INQUIRE)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_OUTPUT:
					result = "(MQRC_NOT_OPEN_FOR_OUTPUT)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_SET:
					result = "(MQRC_NOT_OPEN_FOR_SET)";
					break;
				case ReasonCodes.MQRC_OBJECT_CHANGED:
					result = "(MQRC_OBJECT_CHANGED)";
					break;
				case ReasonCodes.MQRC_OBJECT_IN_USE:
					result = "(MQRC_OBJECT_IN_USE)";
					break;
				case ReasonCodes.MQRC_OBJECT_TYPE_ERROR:
					result = "(MQRC_OBJECT_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_OD_ERROR:
					result = "(MQRC_OD_ERROR)";
					break;
				case ReasonCodes.MQRC_OPTION_NOT_VALID_FOR_TYPE:
					result = "(MQRC_OPTION_NOT_VALID_FOR_TYPE)";
					break;
				case ReasonCodes.MQRC_OPTIONS_ERROR:
					result = "(MQRC_OPTIONS_ERROR)";
					break;
				case ReasonCodes.MQRC_PERSISTENCE_ERROR:
					result = "(MQRC_PERSISTENCE_ERROR)";
					break;
				case ReasonCodes.MQRC_PERSISTENT_NOT_ALLOWED:
					result = "(MQRC_PERSISTENT_NOT_ALLOWED)";
					break;
				case ReasonCodes.MQRC_PRIORITY_EXCEEDS_MAXIMUM:
					result = "(MQRC_PRIORITY_EXCEEDS_MAXIMUM)";
					break;
				case ReasonCodes.MQRC_PRIORITY_ERROR:
					result = "(MQRC_PRIORITY_ERROR)";
					break;
				case ReasonCodes.MQRC_PUT_INHIBITED:
					result = "(MQRC_PUT_INHIBITED)";
					break;
				case ReasonCodes.MQRC_Q_DELETED:
					result = "(MQRC_Q_DELETED)";
					break;
				case ReasonCodes.MQRC_Q_FULL:
					result = "(MQRC_Q_FULL)";
					break;
				case ReasonCodes.MQRC_Q_NOT_EMPTY:
					result = "(MQRC_Q_NOT_EMPTY)";
					break;
				case ReasonCodes.MQRC_Q_SPACE_NOT_AVAILABLE:
					result = "(MQRC_Q_SPACE_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_Q_TYPE_ERROR:
					result = "(MQRC_Q_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_Q_MGR_NAME_ERROR:
					result = "(MQRC_Q_MGR_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_Q_MGR_NOT_AVAILABLE:
					result = "(MQRC_Q_MGR_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_REPORT_OPTIONS_ERROR:
					result = "(MQRC_REPORT_OPTIONS_ERROR)";
					break;
				case ReasonCodes.MQRC_SECOND_MARK_NOT_ALLOWED:
					result = "(MQRC_SECOND_MARK_NOT_ALLOWED)";
					break;
				case ReasonCodes.MQRC_SECURITY_ERROR:
					result = "(MQRC_SECURITY_ERROR)";
					break;
				case ReasonCodes.MQRC_SELECTOR_COUNT_ERROR:
					result = "(MQRC_SELECTOR_COUNT_ERROR)";
					break;
				case ReasonCodes.MQRC_SELECTOR_LIMIT_EXCEEDED:
					result = "(MQRC_SELECTOR_LIMIT_EXCEEDED)";
					break;
				case ReasonCodes.MQRC_SELECTOR_ERROR:
					result = "(MQRC_SELECTOR_ERROR)";
					break;
				case ReasonCodes.MQRC_SELECTOR_NOT_FOR_TYPE:
					result = "(MQRC_SELECTOR_NOT_FOR_TYPE)";
					break;
				case ReasonCodes.MQRC_SIGNAL_OUTSTANDING:
					result = "(MQRC_SIGNAL_OUTSTANDING)";
					break;
				case ReasonCodes.MQRC_SIGNAL_REQUEST_ACCEPTED:
					result = "(MQRC_SIGNAL_REQUEST_ACCEPTED)";
					break;
				case ReasonCodes.MQRC_STORAGE_NOT_AVAILABLE:
					result = "(MQRC_STORAGE_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_SYNCPOINT_NOT_AVAILABLE:
					result = "(MQRC_SYNCPOINT_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_TRIGGER_CONTROL_ERROR:
					result = "(MQRC_TRIGGER_CONTROL_ERROR)";
					break;
				case ReasonCodes.MQRC_TRIGGER_DEPTH_ERROR:
					result = "(MQRC_TRIGGER_DEPTH_ERROR)";
					break;
				case ReasonCodes.MQRC_TRIGGER_MSG_PRIORITY_ERR:
					result = "(MQRC_TRIGGER_MSG_PRIORITY_ERR)";
					break;
				case ReasonCodes.MQRC_TRIGGER_TYPE_ERROR:
					result = "(MQRC_TRIGGER_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_TRUNCATED_MSG_ACCEPTED:
					result = "(MQRC_TRUNCATED_MSG_ACCEPTED)";
					break;
				case ReasonCodes.MQRC_TRUNCATED_MSG_FAILED:
					result = "(MQRC_TRUNCATED_MSG_FAILED)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_ALIAS_BASE_Q:
					result = "(MQRC_UNKNOWN_ALIAS_BASE_Q)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_OBJECT_NAME:
					result = "(MQRC_UNKNOWN_OBJECT_NAME)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_OBJECT_Q_MGR:
					result = "(MQRC_UNKNOWN_OBJECT_Q_MGR)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_REMOTE_Q_MGR:
					result = "(MQRC_UNKNOWN_REMOTE_Q_MGR)";
					break;
				case ReasonCodes.MQRC_WAIT_INTERVAL_ERROR:
					result = "(MQRC_WAIT_INTERVAL_ERROR)";
					break;
				case ReasonCodes.MQRC_XMIT_Q_TYPE_ERROR:
					result = "(MQRC_XMIT_Q_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_XMIT_Q_USAGE_ERROR:
					result = "(MQRC_XMIT_Q_USAGE_ERROR)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_PASS_ALL:
					result = "(MQRC_NOT_OPEN_FOR_PASS_ALL)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_PASS_IDENT:
					result = "(MQRC_NOT_OPEN_FOR_PASS_IDENT)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_SET_ALL:
					result = "(MQRC_NOT_OPEN_FOR_SET_ALL)";
					break;
				case ReasonCodes.MQRC_NOT_OPEN_FOR_SET_IDENT:
					result = "(MQRC_NOT_OPEN_FOR_SET_IDENT)";
					break;
				case ReasonCodes.MQRC_CONTEXT_HANDLE_ERROR:
					result = "(MQRC_CONTEXT_HANDLE_ERROR)";
					break;
				case ReasonCodes.MQRC_CONTEXT_NOT_AVAILABLE:
					result = "(MQRC_CONTEXT_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_SIGNAL1_ERROR:
					result = "(MQRC_SIGNAL1_ERROR)";
					break;
				case ReasonCodes.MQRC_OBJECT_ALREADY_EXISTS:
					result = "(MQRC_OBJECT_ALREADY_EXISTS)";
					break;
				case ReasonCodes.MQRC_OBJECT_DAMAGED:
					result = "(MQRC_OBJECT_DAMAGED)";
					break;
				case ReasonCodes.MQRC_RESOURCE_PROBLEM:
					result = "(MQRC_RESOURCE_PROBLEM)";
					break;
				case ReasonCodes.MQRC_ANOTHER_Q_MGR_CONNECTED:
					result = "(MQRC_ANOTHER_Q_MGR_CONNECTED)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_REPORT_OPTION:
					result = "(MQRC_UNKNOWN_REPORT_OPTION)";
					break;
				case ReasonCodes.MQRC_STORAGE_CLASS_ERROR:
					result = "(MQRC_STORAGE_CLASS_ERROR)";
					break;
				case ReasonCodes.MQRC_COD_NOT_VALID_FOR_XCF_Q:
					result = "(MQRC_COD_NOT_VALID_FOR_XCF_Q)";
					break;
				case ReasonCodes.MQRC_XWAIT_CANCELED:
					result = "(MQRC_XWAIT_CANCELED)";
					break;
				case ReasonCodes.MQRC_XWAIT_ERROR:
					result = "(MQRC_XWAIT_ERROR)";
					break;
				case ReasonCodes.MQRC_SUPPRESSED_BY_EXIT:
					result = "(MQRC_SUPPRESSED_BY_EXIT)";
					break;
				case ReasonCodes.MQRC_FORMAT_ERROR:
					result = "(MQRC_FORMAT_ERROR)";
					break;
				case ReasonCodes.MQRC_SOURCE_CCSID_ERROR:
					result = "(MQRC_SOURCE_CCSID_ERROR)";
					break;
				case ReasonCodes.MQRC_SOURCE_INTEGER_ENC_ERROR:
					result = "(MQRC_SOURCE_INTEGER_ENC_ERROR)";
					break;
				case ReasonCodes.MQRC_SOURCE_DECIMAL_ENC_ERROR:
					result = "(MQRC_SOURCE_DECIMAL_ENC_ERROR)";
					break;
				case ReasonCodes.MQRC_SOURCE_FLOAT_ENC_ERROR:
					result = "(MQRC_SOURCE_FLOAT_ENC_ERROR)";
					break;
				case ReasonCodes.MQRC_TARGET_CCSID_ERROR:
					result = "(MQRC_TARGET_CCSID_ERROR)";
					break;
				case ReasonCodes.MQRC_TARGET_INTEGER_ENC_ERROR:
					result = "(MQRC_TARGET_INTEGER_ENC_ERROR)";
					break;
				case ReasonCodes.MQRC_TARGET_DECIMAL_ENC_ERROR:
					result = "(MQRC_TARGET_DECIMAL_ENC_ERROR)";
					break;
				case ReasonCodes.MQRC_TARGET_FLOAT_ENC_ERROR:
					result = "(MQRC_TARGET_FLOAT_ENC_ERROR)";
					break;
				case ReasonCodes.MQRC_NOT_CONVERTED:
					result = "(MQRC_NOT_CONVERTED)";
					break;
				case ReasonCodes.MQRC_CONVERTED_MSG_TOO_BIG:
					result = "(MQRC_CONVERTED_MSG_TOO_BIG)";
					break;
				case ReasonCodes.MQRC_NO_EXTERNAL_PARTICIPANTS:
					result = "(MQRC_NO_EXTERNAL_PARTICIPANTS)";
					break;
				case ReasonCodes.MQRC_PARTICIPANT_NOT_AVAILABLE:
					result = "(MQRC_PARTICIPANT_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_OUTCOME_MIXED:
					result = "(MQRC_OUTCOME_MIXED)";
					break;
				case ReasonCodes.MQRC_OUTCOME_PENDING:
					result = "(MQRC_OUTCOME_PENDING)";
					break;
				case ReasonCodes.MQRC_BRIDGE_STARTED:
					result = "(MQRC_BRIDGE_STARTED)";
					break;
				case ReasonCodes.MQRC_BRIDGE_STOPPED:
					result = "(MQRC_BRIDGE_STOPPED)";
					break;
				case ReasonCodes.MQRC_ADAPTER_STORAGE_SHORTAGE:
					result = "(MQRC_ADAPTER_STORAGE_SHORTAGE)";
					break;
				case ReasonCodes.MQRC_UOW_IN_PROGRESS:
					result = "(MQRC_UOW_IN_PROGRESS)";
					break;
				case ReasonCodes.MQRC_ADAPTER_CONN_LOAD_ERROR:
					result = "(MQRC_ADAPTER_CONN_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_ADAPTER_SERV_LOAD_ERROR:
					result = "(MQRC_ADAPTER_SERV_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_ADAPTER_DEFS_ERROR:
					result = "(MQRC_ADAPTER_DEFS_ERROR)";
					break;
				case ReasonCodes.MQRC_ADAPTER_DEFS_LOAD_ERROR:
					result = "(MQRC_ADAPTER_DEFS_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_ADAPTER_CONV_LOAD_ERROR:
					result = "(MQRC_ADAPTER_CONV_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_BO_ERROR:
					result = "(MQRC_BO_ERROR)";
					break;
				case ReasonCodes.MQRC_DH_ERROR:
					result = "(MQRC_DH_ERROR)";
					break;
				case ReasonCodes.MQRC_MULTIPLE_REASONS:
					result = "(MQRC_MULTIPLE_REASONS)";
					break;
				case ReasonCodes.MQRC_OPEN_FAILED:
					result = "(MQRC_OPEN_FAILED)";
					break;
				case ReasonCodes.MQRC_ADAPTER_DISC_LOAD_ERROR:
					result = "(MQRC_ADAPTER_DISC_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_CNO_ERROR:
					result = "(MQRC_CNO_ERROR)";
					break;
				case ReasonCodes.MQRC_CICS_WAIT_FAILED:
					result = "(MQRC_CICS_WAIT_FAILED)";
					break;
				case ReasonCodes.MQRC_DLH_ERROR:
					result = "(MQRC_DLH_ERROR)";
					break;
				case ReasonCodes.MQRC_HEADER_ERROR:
					result = "(MQRC_HEADER_ERROR)";
					break;
				case ReasonCodes.MQRC_SOURCE_LENGTH_ERROR:
					result = "(MQRC_SOURCE_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_TARGET_LENGTH_ERROR:
					result = "(MQRC_TARGET_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_SOURCE_BUFFER_ERROR:
					result = "(MQRC_SOURCE_BUFFER_ERROR)";
					break;
				case ReasonCodes.MQRC_TARGET_BUFFER_ERROR:
					result = "(MQRC_TARGET_BUFFER_ERROR)";
					break;
				case ReasonCodes.MQRC_IIH_ERROR:
					result = "(MQRC_IIH_ERROR)";
					break;
				case ReasonCodes.MQRC_PCF_ERROR:
					result = "(MQRC_PCF_ERROR)";
					break;
				case ReasonCodes.MQRC_DBCS_ERROR:
					result = "(MQRC_DBCS_ERROR)";
					break;
				case ReasonCodes.MQRC_OBJECT_NAME_ERROR:
					result = "(MQRC_OBJECT_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_OBJECT_Q_MGR_NAME_ERROR:
					result = "(MQRC_OBJECT_Q_MGR_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_RECS_PRESENT_ERROR:
					result = "(MQRC_RECS_PRESENT_ERROR)";
					break;
				case ReasonCodes.MQRC_OBJECT_RECORDS_ERROR:
					result = "(MQRC_OBJECT_RECORDS_ERROR)";
					break;
				case ReasonCodes.MQRC_RESPONSE_RECORDS_ERROR:
					result = "(MQRC_RESPONSE_RECORDS_ERROR)";
					break;
				case ReasonCodes.MQRC_ASID_MISMATCH:
					result = "(MQRC_ASID_MISMATCH)";
					break;
				case ReasonCodes.MQRC_PMO_RECORD_FLAGS_ERROR:
					result = "(MQRC_PMO_RECORD_FLAGS_ERROR)";
					break;
				case ReasonCodes.MQRC_PUT_MSG_RECORDS_ERROR:
					result = "(MQRC_PUT_MSG_RECORDS_ERROR)";
					break;
				case ReasonCodes.MQRC_CONN_ID_IN_USE:
					result = "(MQRC_CONN_ID_IN_USE)";
					break;
				case ReasonCodes.MQRC_Q_MGR_QUIESCING:
					result = "(MQRC_Q_MGR_QUIESCING)";
					break;
				case ReasonCodes.MQRC_Q_MGR_STOPPING:
					result = "(MQRC_Q_MGR_STOPPING)";
					break;
				case ReasonCodes.MQRC_DUPLICATE_RECOV_COORD:
					result = "(MQRC_DUPLICATE_RECOV_COORD)";
					break;
				case ReasonCodes.MQRC_PMO_ERROR:
					result = "(MQRC_PMO_ERROR)";
					break;
				case ReasonCodes.MQRC_API_EXIT_NOT_FOUND:
					result = "(MQRC_API_EXIT_NOT_FOUND)";
					break;
				case ReasonCodes.MQRC_API_EXIT_LOAD_ERROR:
					result = "(MQRC_API_EXIT_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_REMOTE_Q_NAME_ERROR:
					result = "(MQRC_REMOTE_Q_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_INCONSISTENT_PERSISTENCE:
					result = "(MQRC_INCONSISTENT_PERSISTENCE)";
					break;
				case ReasonCodes.MQRC_GMO_ERROR:
					result = "(MQRC_GMO_ERROR)";
					break;
				case ReasonCodes.MQRC_CICS_BRIDGE_RESTRICTION:
					result = "(MQRC_CICS_BRIDGE_RESTRICTION)";
					break;
				case ReasonCodes.MQRC_STOPPED_BY_CLUSTER_EXIT:
					result = "(MQRC_STOPPED_BY_CLUSTER_EXIT)";
					break;
				case ReasonCodes.MQRC_CLUSTER_RESOLUTION_ERROR:
					result = "(MQRC_CLUSTER_RESOLUTION_ERROR)";
					break;
				case ReasonCodes.MQRC_CONVERTED_STRING_TOO_BIG:
					result = "(MQRC_CONVERTED_STRING_TOO_BIG)";
					break;
				case ReasonCodes.MQRC_TMC_ERROR:
					result = "(MQRC_TMC_ERROR)";
					break;
				case ReasonCodes.MQRC_PAGESET_FULL:
					result = "(MQRC_PAGESET_FULL)";
					break;
				case ReasonCodes.MQRC_PAGESET_ERROR:
					result = "(MQRC_PAGESET_ERROR)";
					break;
				case ReasonCodes.MQRC_NAME_NOT_VALID_FOR_TYPE:
					result = "(MQRC_NAME_NOT_VALID_FOR_TYPE)";
					break;
				case ReasonCodes.MQRC_UNEXPECTED_ERROR:
					result = "(MQRC_UNEXPECTED_ERROR)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_XMIT_Q:
					result = "(MQRC_UNKNOWN_XMIT_Q)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_DEF_XMIT_Q:
					result = "(MQRC_UNKNOWN_DEF_XMIT_Q)";
					break;
				case ReasonCodes.MQRC_DEF_XMIT_Q_TYPE_ERROR:
					result = "(MQRC_DEF_XMIT_Q_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_DEF_XMIT_Q_USAGE_ERROR:
					result = "(MQRC_DEF_XMIT_Q_USAGE_ERROR)";
					break;
				case ReasonCodes.MQRC_NAME_IN_USE:
					result = "(MQRC_NAME_IN_USE)";
					break;
				case ReasonCodes.MQRC_CONNECTION_QUIESCING:
					result = "(MQRC_CONNECTION_QUIESCING)";
					break;
				case ReasonCodes.MQRC_CONNECTION_STOPPING:
					result = "(MQRC_CONNECTION_STOPPING)";
					break;
				case ReasonCodes.MQRC_ADAPTER_NOT_AVAILABLE:
					result = "(MQRC_ADAPTER_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_MSG_ID_ERROR:
					result = "(MQRC_MSG_ID_ERROR)";
					break;
				case ReasonCodes.MQRC_CORREL_ID_ERROR:
					result = "(MQRC_CORREL_ID_ERROR)";
					break;
				case ReasonCodes.MQRC_FILE_SYSTEM_ERROR:
					result = "(MQRC_FILE_SYSTEM_ERROR)";
					break;
				case ReasonCodes.MQRC_NO_MSG_LOCKED:
					result = "(MQRC_NO_MSG_LOCKED)";
					break;
				case ReasonCodes.MQRC_FILE_NOT_AUDITED:
					result = "(MQRC_FILE_NOT_AUDITED)";
					break;
				case ReasonCodes.MQRC_CONNECTION_NOT_AUTHORIZED:
					result = "(MQRC_CONNECTION_NOT_AUTHORIZED)";
					break;
				case ReasonCodes.MQRC_MSG_TOO_BIG_FOR_CHANNEL:
					result = "(MQRC_MSG_TOO_BIG_FOR_CHANNEL)";
					break;
				case ReasonCodes.MQRC_CALL_IN_PROGRESS:
					result = "(MQRC_CALL_IN_PROGRESS)";
					break;
				case ReasonCodes.MQRC_RMH_ERROR:
					result = "(MQRC_RMH_ERROR)";
					break;
				case ReasonCodes.MQRC_Q_MGR_ACTIVE:
					result = "(MQRC_Q_MGR_ACTIVE)";
					break;
				case ReasonCodes.MQRC_Q_MGR_NOT_ACTIVE:
					result = "(MQRC_Q_MGR_NOT_ACTIVE)";
					break;
				case ReasonCodes.MQRC_Q_DEPTH_HIGH:
					result = "(MQRC_Q_DEPTH_HIGH)";
					break;
				case ReasonCodes.MQRC_Q_DEPTH_LOW:
					result = "(MQRC_Q_DEPTH_LOW)";
					break;
				case ReasonCodes.MQRC_Q_SERVICE_INTERVAL_HIGH:
					result = "(MQRC_Q_SERVICE_INTERVAL_HIGH)";
					break;
				case ReasonCodes.MQRC_Q_SERVICE_INTERVAL_OK:
					result = "(MQRC_Q_SERVICE_INTERVAL_OK)";
					break;
				case ReasonCodes.MQRC_UNIT_OF_WORK_NOT_STARTED:
					result = "(MQRC_UNIT_OF_WORK_NOT_STARTED)";
					break;
				case ReasonCodes.MQRC_CHANNEL_AUTO_DEF_OK:
					result = "(MQRC_CHANNEL_AUTO_DEF_OK)";
					break;
				case ReasonCodes.MQRC_CHANNEL_AUTO_DEF_ERROR:
					result = "(MQRC_CHANNEL_AUTO_DEF_ERROR)";
					break;
				case ReasonCodes.MQRC_CFH_ERROR:
					result = "(MQRC_CFH_ERROR)";
					break;
				case ReasonCodes.MQRC_CFIL_ERROR:
					result = "(MQRC_CFIL_ERROR)";
					break;
				case ReasonCodes.MQRC_CFIN_ERROR:
					result = "(MQRC_CFIN_ERROR)";
					break;
				case ReasonCodes.MQRC_CFSL_ERROR:
					result = "(MQRC_CFSL_ERROR)";
					break;
				case ReasonCodes.MQRC_CFST_ERROR:
					result = "(MQRC_CFST_ERROR)";
					break;
				case ReasonCodes.MQRC_INCOMPLETE_GROUP:
					result = "(MQRC_INCOMPLETE_GROUP)";
					break;
				case ReasonCodes.MQRC_INCOMPLETE_MSG:
					result = "(MQRC_INCOMPLETE_MSG)";
					break;
				case ReasonCodes.MQRC_INCONSISTENT_CCSIDS:
					result = "(MQRC_INCONSISTENT_CCSIDS)";
					break;
				case ReasonCodes.MQRC_INCONSISTENT_ENCODINGS:
					result = "(MQRC_INCONSISTENT_ENCODINGS)";
					break;
				case ReasonCodes.MQRC_INCONSISTENT_UOW:
					result = "(MQRC_INCONSISTENT_UOW)";
					break;
				case ReasonCodes.MQRC_INVALID_MSG_UNDER_CURSOR:
					result = "(MQRC_INVALID_MSG_UNDER_CURSOR)";
					break;
				case ReasonCodes.MQRC_MATCH_OPTIONS_ERROR:
					result = "(MQRC_MATCH_OPTIONS_ERROR)";
					break;
				case ReasonCodes.MQRC_MDE_ERROR:
					result = "(MQRC_MDE_ERROR)";
					break;
				case ReasonCodes.MQRC_MSG_FLAGS_ERROR:
					result = "(MQRC_MSG_FLAGS_ERROR)";
					break;
				case ReasonCodes.MQRC_MSG_SEQ_NUMBER_ERROR:
					result = "(MQRC_MSG_SEQ_NUMBER_ERROR)";
					break;
				case ReasonCodes.MQRC_OFFSET_ERROR:
					result = "(MQRC_OFFSET_ERROR)";
					break;
				case ReasonCodes.MQRC_ORIGINAL_LENGTH_ERROR:
					result = "(MQRC_ORIGINAL_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_SEGMENT_LENGTH_ZERO:
					result = "(MQRC_SEGMENT_LENGTH_ZERO)";
					break;
				case ReasonCodes.MQRC_UOW_NOT_AVAILABLE:
					result = "(MQRC_UOW_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_WRONG_GMO_VERSION:
					result = "(MQRC_WRONG_GMO_VERSION)";
					break;
				case ReasonCodes.MQRC_WRONG_MD_VERSION:
					result = "(MQRC_WRONG_MD_VERSION)";
					break;
				case ReasonCodes.MQRC_GROUP_ID_ERROR:
					result = "(MQRC_GROUP_ID_ERROR)";
					break;
				case ReasonCodes.MQRC_INCONSISTENT_BROWSE:
					result = "(MQRC_INCONSISTENT_BROWSE)";
					break;
				case ReasonCodes.MQRC_XQH_ERROR:
					result = "(MQRC_XQH_ERROR)";
					break;
				case ReasonCodes.MQRC_SRC_ENV_ERROR:
					result = "(MQRC_SRC_ENV_ERROR)";
					break;
				case ReasonCodes.MQRC_SRC_NAME_ERROR:
					result = "(MQRC_SRC_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_DEST_ENV_ERROR:
					result = "(MQRC_DEST_ENV_ERROR)";
					break;
				case ReasonCodes.MQRC_DEST_NAME_ERROR:
					result = "(MQRC_DEST_NAME_ERROR)";
					break;
				case ReasonCodes.MQRC_TM_ERROR:
					result = "(MQRC_TM_ERROR)";
					break;
				case ReasonCodes.MQRC_CLUSTER_EXIT_ERROR:
					result = "(MQRC_CLUSTER_EXIT_ERROR)";
					break;
				case ReasonCodes.MQRC_CLUSTER_EXIT_LOAD_ERROR:
					result = "(MQRC_CLUSTER_EXIT_LOAD_ERROR)";
					break;
				case ReasonCodes.MQRC_CLUSTER_PUT_INHIBITED:
					result = "(MQRC_CLUSTER_PUT_INHIBITED)";
					break;
				case ReasonCodes.MQRC_CLUSTER_RESOURCE_ERROR:
					result = "(MQRC_CLUSTER_RESOURCE_ERROR)";
					break;
				case ReasonCodes.MQRC_NO_DESTINATIONS_AVAILABLE:
					result = "(MQRC_NO_DESTINATIONS_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_CONN_TAG_IN_USE:
					result = "(MQRC_CONN_TAG_IN_USE)";
					break;
				case ReasonCodes.MQRC_PARTIALLY_CONVERTED:
					result = "(MQRC_PARTIALLY_CONVERTED)";
					break;
				case ReasonCodes.MQRC_CONNECTION_ERROR:
					result = "(MQRC_CONNECTION_ERROR)";
					break;
				case ReasonCodes.MQRC_OPTION_ENVIRONMENT_ERROR:
					result = "(MQRC_OPTION_ENVIRONMENT_ERROR)";
					break;
				case ReasonCodes.MQRC_CD_ERROR:
					result = "(MQRC_CD_ERROR)";
					break;
				case ReasonCodes.MQRC_CLIENT_CONN_ERROR:
					result = "(MQRC_CLIENT_CONN_ERROR)";
					break;
				case ReasonCodes.MQRC_CHANNEL_STOPPED_BY_USER:
					result = "(MQRC_CHANNEL_STOPPED_BY_USER)";
					break;
				case ReasonCodes.MQRC_HCONFIG_ERROR:
					result = "(MQRC_HCONFIG_ERROR)";
					break;
				case ReasonCodes.MQRC_FUNCTION_ERROR:
					result = "(MQRC_FUNCTION_ERROR)";
					break;
				case ReasonCodes.MQRC_CHANNEL_STARTED:
					result = "(MQRC_CHANNEL_STARTED)";
					break;
				case ReasonCodes.MQRC_CHANNEL_STOPPED:
					result = "(MQRC_CHANNEL_STOPPED)";
					break;
				case ReasonCodes.MQRC_CHANNEL_CONV_ERROR:
					result = "(MQRC_CHANNEL_CONV_ERROR)";
					break;
				case ReasonCodes.MQRC_SERVICE_NOT_AVAILABLE:
					result = "(MQRC_SERVICE_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_INITIALIZATION_FAILED:
					result = "(MQRC_INITIALIZATION_FAILED)";
					break;
				case ReasonCodes.MQRC_TERMINATION_FAILED:
					result = "(MQRC_TERMINATION_FAILED)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_Q_NAME:
					result = "(MQRC_UNKNOWN_Q_NAME)";
					break;
				case ReasonCodes.MQRC_SERVICE_ERROR:
					result = "(MQRC_SERVICE_ERROR)";
					break;
				case ReasonCodes.MQRC_Q_ALREADY_EXISTS:
					result = "(MQRC_Q_ALREADY_EXISTS)";
					break;
				case ReasonCodes.MQRC_USER_ID_NOT_AVAILABLE:
					result = "(MQRC_USER_ID_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_ENTITY:
					result = "(MQRC_UNKNOWN_ENTITY)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_AUTH_ENTITY:
					result = "(MQRC_UNKNOWN_AUTH_ENTITY)";
					break;
				case ReasonCodes.MQRC_UNKNOWN_REF_OBJECT:
					result = "(MQRC_UNKNOWN_REF_OBJECT)";
					break;
				case ReasonCodes.MQRC_CHANNEL_ACTIVATED:
					result = "(MQRC_CHANNEL_ACTIVATED)";
					break;
				case ReasonCodes.MQRC_CHANNEL_NOT_ACTIVATED:
					result = "(MQRC_CHANNEL_NOT_ACTIVATED)";
					break;
				case ReasonCodes.MQRC_UOW_CANCELED:
					result = "(MQRC_UOW_CANCELED)";
					break;
				case ReasonCodes.MQRC_FUNCTION_NOT_SUPPORTED:
					result = "(MQRC_FUNCTION_NOT_SUPPORTED)";
					break;
				case ReasonCodes.MQRC_SELECTOR_TYPE_ERROR:
					result = "(MQRC_SELECTOR_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_COMMAND_TYPE_ERROR:
					result = "(MQRC_COMMAND_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_MULTIPLE_INSTANCE_ERROR:
					result = "(MQRC_MULTIPLE_INSTANCE_ERROR)";
					break;
				case ReasonCodes.MQRC_SYSTEM_ITEM_NOT_ALTERABLE:
					result = "(MQRC_SYSTEM_ITEM_NOT_ALTERABLE)";
					break;
				case ReasonCodes.MQRC_BAG_CONVERSION_ERROR:
					result = "(MQRC_BAG_CONVERSION_ERROR)";
					break;
				case ReasonCodes.MQRC_SELECTOR_OUT_OF_RANGE:
					result = "(MQRC_SELECTOR_OUT_OF_RANGE)";
					break;
				case ReasonCodes.MQRC_SELECTOR_NOT_UNIQUE:
					result = "(MQRC_SELECTOR_NOT_UNIQUE)";
					break;
				case ReasonCodes.MQRC_INDEX_NOT_PRESENT:
					result = "(MQRC_INDEX_NOT_PRESENT)";
					break;
				case ReasonCodes.MQRC_STRING_ERROR:
					result = "(MQRC_STRING_ERROR)";
					break;
				case ReasonCodes.MQRC_ENCODING_NOT_SUPPORTED:
					result = "(MQRC_ENCODING_NOT_SUPPORTED)";
					break;
				case ReasonCodes.MQRC_SELECTOR_NOT_PRESENT:
					result = "(MQRC_SELECTOR_NOT_PRESENT)";
					break;
				case ReasonCodes.MQRC_OUT_SELECTOR_ERROR:
					result = "(MQRC_OUT_SELECTOR_ERROR)";
					break;
				case ReasonCodes.MQRC_STRING_TRUNCATED:
					result = "(MQRC_STRING_TRUNCATED)";
					break;
				case ReasonCodes.MQRC_SELECTOR_WRONG_TYPE:
					result = "(MQRC_SELECTOR_WRONG_TYPE)";
					break;
				case ReasonCodes.MQRC_INCONSISTENT_ITEM_TYPE:
					result = "(MQRC_INCONSISTENT_ITEM_TYPE)";
					break;
				case ReasonCodes.MQRC_INDEX_ERROR:
					result = "(MQRC_INDEX_ERROR)";
					break;
				case ReasonCodes.MQRC_SYSTEM_BAG_NOT_ALTERABLE:
					result = "(MQRC_SYSTEM_BAG_NOT_ALTERABLE)";
					break;
				case ReasonCodes.MQRC_ITEM_COUNT_ERROR:
					result = "(MQRC_ITEM_COUNT_ERROR)";
					break;
				case ReasonCodes.MQRC_FORMAT_NOT_SUPPORTED:
					result = "(MQRC_FORMAT_NOT_SUPPORTED)";
					break;
				case ReasonCodes.MQRC_SELECTOR_NOT_SUPPORTED:
					result = "(MQRC_SELECTOR_NOT_SUPPORTED)";
					break;
				case ReasonCodes.MQRC_ITEM_VALUE_ERROR:
					result = "(MQRC_ITEM_VALUE_ERROR)";
					break;
				case ReasonCodes.MQRC_HBAG_ERROR:
					result = "(MQRC_HBAG_ERROR)";
					break;
				case ReasonCodes.MQRC_PARAMETER_MISSING:
					result = "(MQRC_PARAMETER_MISSING)";
					break;
				case ReasonCodes.MQRC_CMD_SERVER_NOT_AVAILABLE:
					result = "(MQRC_CMD_SERVER_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_STRING_LENGTH_ERROR:
					result = "(MQRC_STRING_LENGTH_ERROR)";
					break;
				case ReasonCodes.MQRC_INQUIRY_COMMAND_ERROR:
					result = "(MQRC_INQUIRY_COMMAND_ERROR)";
					break;
				case ReasonCodes.MQRC_NESTED_BAG_NOT_SUPPORTED:
					result = "(MQRC_NESTED_BAG_NOT_SUPPORTED)";
					break;
				case ReasonCodes.MQRC_BAG_WRONG_TYPE:
					result = "(MQRC_BAG_WRONG_TYPE)";
					break;
				case ReasonCodes.MQRC_ITEM_TYPE_ERROR:
					result = "(MQRC_ITEM_TYPE_ERROR)";
					break;
				case ReasonCodes.MQRC_SYSTEM_BAG_NOT_DELETABLE:
					result = "(MQRC_SYSTEM_BAG_NOT_DELETABLE)";
					break;
				case ReasonCodes.MQRC_SYSTEM_ITEM_NOT_DELETABLE:
					result = "(MQRC_SYSTEM_ITEM_NOT_DELETABLE)";
					break;
				case ReasonCodes.MQRC_CODED_CHAR_SET_ID_ERROR:
					result = "(MQRC_CODED_CHAR_SET_ID_ERROR)";
					break;
				case ReasonCodes.MQRC_MSG_TOKEN_ERROR:
					result = "(MQRC_MSG_TOKEN_ERROR)";
					break;
				case ReasonCodes.MQRC_MISSING_WIH:
					result = "(MQRC_MISSING_WIH)";
					break;
				case ReasonCodes.MQRC_WIH_ERROR:
					result = "(MQRC_WIH_ERROR)";
					break;
				case ReasonCodes.MQRC_RFH_ERROR:
					result = "(MQRC_RFH_ERROR)";
					break;
				case ReasonCodes.MQRC_RFH_STRING_ERROR:
					result = "(MQRC_RFH_STRING_ERROR)";
					break;
				case ReasonCodes.MQRC_RFH_COMMAND_ERROR:
					result = "(MQRC_RFH_COMMAND_ERROR)";
					break;
				case ReasonCodes.MQRC_RFH_PARM_ERROR:
					result = "(MQRC_RFH_PARM_ERROR)";
					break;
				case ReasonCodes.MQRC_RFH_DUPLICATE_PARM:
					result = "(MQRC_RFH_DUPLICATE_PARM)";
					break;
				case ReasonCodes.MQRC_RFH_PARM_MISSING:
					result = "(MQRC_RFH_PARM_MISSING)";
					break;
				case ReasonCodes.MQRC_CHAR_CONVERSION_ERROR:
					result = "(MQRC_CHAR_CONVERSION_ERROR)";
					break;
				case ReasonCodes.MQRC_UCS2_CONVERSION_ERROR:
					result = "(MQRC_UCS2_CONVERSION_ERROR)";
					break;
				case ReasonCodes.MQRC_DB2_NOT_AVAILABLE:
					result = "(MQRC_DB2_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_OBJECT_NOT_UNIQUE:
					result = "(MQRC_OBJECT_NOT_UNIQUE)";
					break;
				case ReasonCodes.MQRC_CONN_TAG_NOT_RELEASED:
					result = "(MQRC_CONN_TAG_NOT_RELEASED)";
					break;
				case ReasonCodes.MQRC_CF_NOT_AVAILABLE:
					result = "(MQRC_CF_NOT_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_CF_STRUC_IN_USE:
					result = "(MQRC_CF_STRUC_IN_USE)";
					break;
				case ReasonCodes.MQRC_CF_STRUC_LIST_HDR_IN_USE:
					result = "(MQRC_CF_STRUC_LIST_HDR_IN_USE)";
					break;
				case ReasonCodes.MQRC_CF_STRUC_AUTH_FAILED:
					result = "(MQRC_CF_STRUC_AUTH_FAILED)";
					break;
				case ReasonCodes.MQRC_CF_STRUC_ERROR:
					result = "(MQRC_CF_STRUC_ERROR)";
					break;
				case ReasonCodes.MQRC_CONN_TAG_NOT_USABLE:
					result = "(MQRC_CONN_TAG_NOT_USABLE)";
					break;
				case ReasonCodes.MQRC_GLOBAL_UOW_CONFLICT:
					result = "(MQRC_GLOBAL_UOW_CONFLICT)";
					break;
				case ReasonCodes.MQRC_LOCAL_UOW_CONFLICT:
					result = "(MQRC_LOCAL_UOW_CONFLICT)";
					break;
				case ReasonCodes.MQRC_HANDLE_IN_USE_FOR_UOW:
					result = "(MQRC_HANDLE_IN_USE_FOR_UOW)";
					break;
				case ReasonCodes.MQRC_UOW_ENLISTMENT_ERROR:
					result = "(MQRC_UOW_ENLISTMENT_ERROR)";
					break;
				case ReasonCodes.MQRC_UOW_MIX_NOT_SUPPORTED:
					result = "(MQRC_UOW_MIX_NOT_SUPPORTED)";
					break;
				case ReasonCodes.MQRC_WXP_ERROR:
					result = "(MQRC_WXP_ERROR)";
					break;
				case ReasonCodes.MQRC_CURRENT_RECORD_ERROR:
					result = "(MQRC_CURRENT_RECORD_ERROR)";
					break;
				case ReasonCodes.MQRC_NEXT_OFFSET_ERROR:
					result = "(MQRC_NEXT_OFFSET_ERROR)";
					break;
				case ReasonCodes.MQRC_NO_RECORD_AVAILABLE:
					result = "(MQRC_NO_RECORD_AVAILABLE)";
					break;
				case ReasonCodes.MQRC_OBJECT_LEVEL_INCOMPATIBLE:
					result = "(MQRC_OBJECT_LEVEL_INCOMPATIBLE)";
					break;
				case ReasonCodes.MQRC_NEXT_RECORD_ERROR:
					result = "(MQRC_NEXT_RECORD_ERROR)";
					break;
				case ReasonCodes.MQRC_APPL_FIRST:
					result = "(MQRC_APPL_FIRST)";
					break;
				case ReasonCodes.MQRC_APPL_LAST:
					result = "(MQRC_APPL_LAST)";
					break;
				default:
					result = string.Format("unknown reason code ({0})",reasonCode);
					break;
			}
			return result;
		}
	}
}
